123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 :
- * 설 명 :
- * 설 계 자 :
- * 작 성 자 :
- * 작 성 일 :
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>[자동판정]의사별 판정 배정기준 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <condition>
- <instcd/>
- <wkdate/>
- <adptstrtdt/>
- </condition>
- <list>
- <grdlist/>
- </list>
- </main>
- <disply>
- </disply>
- <send>
- <grdlist/>
- </send>
- <hidden/>
- <temp/>
- <init>
- <sumamt/>
- <baseinfo>
- <healexamplacecd/>
- <healexamplacelst/>
- </baseinfo>
- </init>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/healexam.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" src="../js/AJDG001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- // fAuthCheck(btn_save);
- // fDefaultSubmit();
- // fPopupSet();
- // model.refresh();
- ]]>
- </script>
- <submission id="TRAHB04501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/condition" resultref="/root/main/list/grdlist"/>
- <submission id="TXAHB04502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grdlist" resultref="/root/temp"/>
- <submission id="TRAHA00001"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
-
- function fInit(){
- model.removeNodeset("/root/main/list/grdlist");
- var instcd = getUserInfo("dutplceinstcd");
- model.setValue("/root/main/condition/instcd",instcd);
- var sToday = getCurrentDate().toString();
- model.setValue("/root/main/condition/wkdate",sToday);
- healGetCodeList( new Array("S600","S600")
- , new Array("/root/init/baseinfo/healexamplacelst" ,"/root/init/baseinfo/healexamplacecd") );
- model.removenode("/root/init/baseinfo/healexamplacelst/S600[0]");
- model.removenode("/root/init/baseinfo/healexamplacecd/S600[0]");
-
- model.refresh();
- }
-
- //데이터 처리
- function fSave() {
- var chgStrDay;
- chgStrDay = model.getValue("/root/main/condition/adptstrtdt");
-
- if ( chgStrDay != "" ) {
- // 20100726 JHP 전체입력, 개별 입력정보 구문 수정
- //var msgR = messageBox("모든 데이타를 적용시작일 기준으로 변경 하시겠습니까? ", "Q000");
- var msgR = messageBox("모든 데이타를 적용시작일 기준으로 변경 하시려면 [예], 선택한 의사만 변경하시려면 [아니오]", "Q000");
- if (msgR == '6') {
- fGrdStatsChg();
- // input1.value="";
- } else {
- //model.alert(" 기존 데이타를 수정하시고자 할 경우 적용시작일의 날짜를 지우고 저장 버튼을 눌러 주세요")
- //model.setValue("/root/main/condition/adptstrtdt","")
- //model.refresh();
- //return;
- var vadptDT = model.getValue("/root/main/condition/adptstrtdt")
- grd_autjggrid.rowStatus(grd_autjggrid.row) = 1;
- grd_autjggrid.valueMatrix(grd_autjggrid.row, grd_autjggrid.colRef("adtstrtdt")) = vadptDT;
- }
- }else{
- // 20100726 JHP 수정인데 판정비율하고 장소가 빈값이면 return 한다.
- for(var k = 0; k <= grd_autjggrid.rows; k++){
- var rowstat = grd_autjggrid.rowStatus(k);
- var chkjudgrate = grd_autjggrid.valueMatrix(k, grd_autjggrid.colRef("judgrate"));
- var chkhealexamplacecd = grd_autjggrid.valueMatrix(k, grd_autjggrid.colRef("healexamplacecd"));
-
- if(rowstat == 2){
- if(chkjudgrate == "" || chkhealexamplacecd == "" || chkjudgrate == null || chkhealexamplacecd == null){
- messageBox("수정내용중 판정비율, 장소 정보가 입력되지 ","E007");
- return false;
- }
- }
- }
-
- }
-
- model.setValue("/root/send/grdlist", grd_autjggrid.getUpdateData());
- submit("TXAHB04502");
- fRetrive();
- model.setValue("/root/main/condition/adptstrtdt", "");
- model.refresh();
- }
-
- function fRetrive() {
- model.resetInstanceNode("/root/main/list/grdlist");
- model.removeNodeset("/root/main/list/grdlist");
- submit("TRAHB04501");
-
- // fGrdSubTotal() ;
-
- }
- function fGrdSubTotal() {
- grd_autjggrid.subtotal("clear", 0, 0);
- grd_autjggrid.subtotalposition="below";
- grd_autjggrid.multitotals=true;
- grd_autjggrid.subtotal("sum", 0, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계", false);
- }
-
- function fGrdStatsChg()
- {
- var rowCnt;
- var vadptDT;
- vadptDT = model.getValue("/root/main/condition/adptstrtdt")
- rowCnt = grd_autjggrid.Rows;
-
- if (rowCnt < 2) {
- model.alert("조회 후 저장 버튼을 선택하여 주세요","알림");
- return;
- }
-
- for(var i =1; i < rowCnt ; i++)
- {
- grd_autjggrid.rowStatus(i) = 1;
- grd_autjggrid.valueMatrix(i, grd_autjggrid.colRef("adtstrtdt")) = vadptDT;
- }
- }
-
- function fDispSumAmt()
- {
-
- var sumamt = 0;
-
- for(var currow = grd_autjggrid.fixedRows ; currow < grd_autjggrid.rows ; currow++)
- {
- sumamt = sumamt + Number(grd_autjggrid.valueMatrix(currow , grd_autjggrid.colRef("judgrate")));
- }
-
-
- model.setValue(opt_sumamt.attribute("ref"),sumamt);
-
- model.refresh();
- }
- function fCheckSaveData()
- {
- var sumamt = 0;
-
- for(var currow = grd_autjggrid.fixedRows ; currow < grd_autjggrid.rows ; currow++)
- {
- sumamt = sumamt + Number(grd_autjggrid.valueMatrix(currow , grd_autjggrid.colRef("judgrate")));
- }
-
-
- model.setValue(opt_sumamt.attribute("ref"),sumamt);
- //alert(sumamt);
- if(sumamt>"100")
- {
- messageBox("판정비율이 100%를초과합니다 " ,"I007");
- return false;
- }
- if(sumamt<"100")
- {
- messageBox("판정비율이 100%를미달입니다 " ,"I007");
- return false;
- }
- return true;
- }
-
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="800" pageheight="700" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:590px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:212px; height:14px; ">[자동판정]의사별 판정 배정기준 관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:810px; height:677px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:800px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:800px; height:40px; "/>
- <line id="line13" class="line_4" style="x1:710px; y1:5px; x2:710px; y2:32px; "/>
- <button id="btn_srch" class="btn1_letter2" style="left:730px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrive();
- // fDispSumAmt();
-
-
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/main/condition/wkdate" class="input_s_essential" inputtype="date" style="left:80px; top:10px; width:105px; height:19px; "/>
- <caption id="caption3" class="search_name" visibility="visible" style="left:15px; top:10px; width:65px; height:17px; ">일자 :</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:800px; y2:75px; ">--화면 import 방법</line>
- <datagrid id="grd_autjggrid" nodeset="/root/main/list/grdlist" autoresize="true" caption="구분^기관코드^의사 ID^의사명^판정비율^장소^시작일^종료일^사용^판정^상담^최초등록자^최종수정자^적용시작일" colsep="^" colwidth="50, 50, 70, 99, 60, 100, 90, 88, 37, 37, 37, 70, 70, 50" dataheight="50" explorerbar="move" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" subtotalposition="below" style="left:0px; top:80px; width:800px; height:535px; color:#0000ff; ">
- <col ref="iflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="drid"/>
- <col ref="drnm"/>
- <col ref="judgrate" type="input" mask="###" maxlength="3" style="text-align:right; "/>
- <col ref="healexamplacecd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="useyn" style="text-align:center; "/>
- <col ref="cnstdryn" style="text-align:center; "/>
- <col ref="judgdryn" style="text-align:center; "/>
- <col ref="fstrgstrid"/>
- <col ref="lastupdtrid"/>
- <col ref="adtstrtdt" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- // fDispSumAmt();
- model.recalculate();
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:60px; width:212px; height:14px; ">의사별 판정배정기준 내역</caption>
- <button id="btn_save" class="btn5_letter2" style="left:714px; top:55px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSave();
-
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" visibility="visible" style="left:497px; top:56px; width:112px; height:17px; ">적용시작일 :</caption>
- <input id="input1" ref="/root/main/condition/adptstrtdt" class="input_s_essential" inputtype="date" style="left:602px; top:56px; width:105px; height:19px; "/>
- <button id="button1" class="btn2_letter2" style="left:757px; top:55px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 20100726 JHP 삭제 추가, 삭제 누르면 오늘날짜 기준으로 todd정리 함.
- deleteSelectedRows(grd_autjggrid, true);
- grd_autjggrid.valueMatrix(grd_autjggrid.row, grd_autjggrid.colRef("adtstrtdt")) = getCurrentDate();
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|